package com.imooc;

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

/**
 * @Author lhy
 * @Date 2021/9/28 10:25
 */
@SpringBootApplication
@EnableEurekaServer
public class EurekaServerPeerApplication {
    public static void main(String[] args) {
       new SpringApplicationBuilder(EurekaServerPeerApplication.class)
               .web(WebApplicationType.SERVLET)
               .run(args);
    }
}
